:root {
    --primary-bg: #27a39b;
    /* --navbar-bg: #1f7e77; */
    --text-white: #ffffff;
    --text-dark: #0a3442;
    --text-muted: #666;
    --text-hover: #dcdcdc;
    --gradient-start: #d95eff;
    --gradient-end: #5e8bff;
    --heading-color: #0A3442;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --bg-light: #eafaf8;
    --card-bg: linear-gradient(180deg, #dff6f3, #038378);
    --radius: 20px;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Zain', sans-serif;
  }
  
  body {
    background-color: #ffffff;
    direction: rtl;
  }
  
  .hero {
    /* background-color: var(--primary-bg); */
    padding: 20px;
    color: var(--text-white);
  }
  
  .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .logo {
    height: 50px;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
  }
  
  .nav-links li a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .navbar .nav-links li a {
    color: #093443; 
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none;
  }
  
  .nav-links li a {
    color: #093443 ;
  }
  
  .nav-links li a:hover {
    color: #33A5A0 ;
  }
  
  
  .nav-links li a:hover {
    color: #33A5A0;
    text-decoration: none; 
    border-bottom: none;   
  }
  
  .menu-toggle {
    display: none;
    font-size: 38px;
    background: none;
    color: var(--heading-color);
    border: none;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 101;
  }
  
  .cta-button {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border: none;
    padding: 10px 20px;
    border-radius: 15px;
    color: var(--text-white);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .cta-button:hover {
    background: white ;
    color: var(--gradient-start);
    border: 1px solid var(--gradient-start);
  }
  
  
  .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0;
    flex-wrap: wrap;
  }
  
  .hero-text {
    color: var(--text-white);
    max-width: 40%;
  }
  
  .hero-text h1 {
    color: var(--heading-color);
    font-size: 3.5rem;
    margin-bottom: 10px;
  }
  
  .hero-text p {
    font-size: 1.5rem;
    line-height: 1.8;
  }
  
  .hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .hero-image {
    margin-top: 0;
    padding: 0;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      align-items: flex-start;
      position: relative;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .nav-links {
      display: none;
      flex-direction: column;
      background-color: var(--navbar-bg);
      width: 100%;
      padding: 15px 20px;
      border-radius: 8px;
      box-shadow: 0 4px 10px var(--shadow-color);
      margin-top: 10px;
    }
  
    .nav-links.show {
      display: flex;
    }
  
    .nav-links li {
      margin: 10px 0;
    }
  
    .cta-button {
      margin-top: 10px;
      align-self: center;
      font-size: 1rem;
      width: 50%;
      text-align: center;
      padding: 12px;
      border-radius: 15px;
    }
  }
  .courses-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: var(--primary-bg);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--shadow-color);
    margin: 40px auto 20px;
    max-width: 1300px;
    height: 140px;
    color: var(--text-white);
    text-align: center;
    margin-top: 45px; /* أو أي قيمة تعجبك */
  
  }
  
  .courses-header h2 {
    margin: 0;
    font-size: 2rem;
    color: var(--text-white);
  }
  
  .policy-header img {
    width: 50px;
    height: 50px;
  }
  
  
  @media (max-width: 991px) {
    .hero-content {
      flex-direction: column;
      text-align: center;
    }
  
    .hero-text, .hero-image {
      max-width: 100%;
    }
  
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
      margin: 10px 0;
    }
  
    .cta-button {
      margin-top: 10px;
    }
  } 



  /* العنوان */
.section-title {
  font-size: 36px;
  font-weight: bold;
  margin: 40px 0 25px;
  padding-right: 10px;
  text-align: right;
}
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

h2 {
  text-align: right;
  color: #006064;
  margin-bottom: 20px;
}

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background-color: #fff;
  border-radius: 12px #33A5A0 solid !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* height: 450px; */
}





.status-dot {
position: absolute;
top: 12px;
right: 12px; /* ← بدّلنا الاتجاه */
width: 12px;
height: 12px;
border-radius: 50%;
}

.status-red {
  background-color: red;
}

.status-green {
  background-color: green;
}


.card img {
  width: 252px;
  height: 220px; /* تأكد من أن هذا الحجم مناسب */
  object-fit: cover; /* اجعل الصورة تملأ المساحة */
  object-position: center; /* اجعل الصورة مركزة داخل الكرت */
}




.card h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1F6271;
  margin: 12px 10px 6px;
}

.card p.description {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.card p.date {
  font-size: 13px;
  color: #777;
  margin-bottom: 6px;
}

.card p.price {
  font-size: 16px;
  font-weight: bold;
  color: #FFC300;
  margin-bottom: 12px;
  text-align: center;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 10px 12px;
}

.buttons button {
  background-color: transparent;
  border: 3px solid #0A3442;
  color: #0A3442;
  border-radius: 31px !important  ;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.relist-btn {
  text-decoration: none; /* لإزالة الخط تحت النص */
}



/* .remove-btn:hover {
  background-color: red;
  color: white;
  border: red;
}
.edit-btn:hover {
  background-color: green;
  color: white;
  border: green;
} */

.price-relist {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 16px;
  gap: 10px;
}

.relist-btn {
  background-color: white;
  color: #0A3442;
  border: #0A3442 solid 3px;
  border-radius: 31px !important  ;
   
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.relist-btn:hover {
  background-color: #105060;
  color: white;
  transform: scale(1.05);
}

.price-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 12px;
  gap: 10px;
}

@media (max-width: 900px) {
  .courses {
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .card {
      height: auto;
  }

  .card img {
      height: 200px;
  }

  .card h3 {
      font-size: 16px;
  }

  .card p.description,
  .card p.date,
  .card p.price {
      font-size: 14px;
  }

  .buttons button {
      font-size: 12px;
      padding: 6px 12px;
  }

  .price-relist {
      flex-direction: column;
  }
}

@media (max-width: 600px) {
  .buttons {
      flex-direction: column;
  }

  .price-relist {
      flex-direction: column;
      gap: 5px;
  }

  .relist-btn,
  .buttons button {
      padding: 10px;
      font-size: 12px;
  }

  .card img {
      height: 180px;
  }

  .card {
      height: auto;
      padding: 10px;
  }

  .card h3 {
      font-size: 14px;
  }

  .card p.price {
      font-size: 14px;
      margin-bottom: 8px;
  }
}


.courses {
  display: grid;
  grid-template-columns: repeat(4, 251px); /* أربعة كروت في كل صف */
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background-color: #fff;
  border-radius: 12px;
  border: #33A5A0 solid 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* height: 420px; */
  width: 251px;
}

@media (max-width: 1200px) {
  .courses {
    grid-template-columns: repeat(3, 251px); /* ثلاثة كروت في كل صف على الشاشات الصغيرة */
  }
}

@media (max-width: 900px) {
  .courses {
    grid-template-columns: repeat(2, 251px); /* كرتين في كل صف على الشاشات الأصغر */
  }
}

@media (max-width: 600px) {
  .courses {
    grid-template-columns: 1fr; /* كرت واحد في كل صف على الشاشات الصغيرة جدًا */
  }
}






   /* Footer */
   footer {
    width: 100%;
    background-color: #0e3e46;
    color: white;
    padding: 40px 0 0;
    box-sizing: border-box;
  }
  
  .footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
  }
  
  .footer-column {
    flex: 1 1 200px;
    min-width: 220px;
  }
  
  .footer-column h3 {
    color: #3db8a9;
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .footer-column p,
  .footer-column a {
    font-size: 0.95rem;
    color: white;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
  }
  
  .footer-column a:hover {
    text-decoration: none;
    color: orange;
  }
  
  .footer-logo-text {
    font-size: 0.95rem;
  }
  
  .section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }
  
  .section .icon {
    width: 80px;
    height: 80px;
  }
  
  .social-icons img {
    width: 30px;
    height: 30px;
  }
  
  .footer-bottom {
    background-color: #36b7a9;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }
  
  .footer-left, .footer-right {
    display: flex;
    align-items: center;
  }
  
  .footer-left {
    justify-content: flex-start;
  }
  
  .footer-right {
    justify-content: flex-end;
  }
  
  .footer-bottom a {
    color: orange;
    font-weight: bold;
    text-decoration: none;
  }
  
  .social-icons img:hover {
    border-radius: 50%;
    background-color: #038378;
  }
  
  .footer-column i {
    margin-left: 8px;
    color: #3db8a9;
    transition: color 0.3s ease;
  }
  
  .footer-column a {
    color: white;
    text-decoration: none; /* نلغي الخط تحت النص */
    transition: color 0.3s ease;
  }
  
  .footer-column a:hover {
    color: #FFC300; /* تغيير اللون فقط عند الوقوف */
    text-decoration: none; /* نتأكد إنه مفيش خط */
  }
  
  
  
  @media (max-width: 768px) {
    .footer-top {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer-column {
      min-width: 100%;
    }
  
    .social-icons {
      justify-content: center;
    }
  }